package cn.lbwfree.day3_22;

import java.util.Scanner;

/**
 * @date:2020年3月22日
 * @author:lbwfree
 * @number:BASIC-26
 */
public class Tell_the_time {
	static String[] time_19;
	static String[] time_20;
	public static void main(String[] args) {
		Scanner inScanner = new Scanner(System.in);
		int[] oclock = new int[2];
		time_19=new String[] {"zero", "one",  "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty"};
		time_20=new String[] {"twenty", "thirty", "forty", "fifty"};
		oclock[0]=inScanner.nextInt();
		oclock[1]=inScanner.nextInt();
		if(oclock[1]==0)
		{
			System.out.println(oTime(oclock[0])+" o'clock");
		}else {
			System.out.println(oTime(oclock[0])+" "+oTime(oclock[1]));
		}
		
		
	}
	private static String oTime(int k) {
		if(k<=19)
		{
			return time_19[k];
		}
		else {
			if(k%10==0)
			{
				return time_20[k/10-2];
			}
			else {
				int t=k%10;
				return time_20[(k-t)/10-2]+" "+time_19[t];
			}
		}
	}

}
